http://docs.oracle.com/cd/E19225-01/820-5821/bvbps/index.html
http://docs.oracle.com/cd/E19225-01/820-5821/bvbyj/index.html
Tuesday, September 8, 2015
Wednesday, September 2, 2015
setup SSL standalone tomcat server
Steps to set up SSL on a test Linux server
· Before set up a https security connection, there
are a few steps:
omake sure the port that you will be use is open
throught the firewall by telnet server port.
omake sure either you use apache+tomcat or tomcat
alone. there are different approaches
omake sure this server is not behind load balancer,
load balancer got its own ssl approach
· following steps is for set up https connection
on tomcat standalone server
· steps that we did on one standalone tomcat
server
oJAVA_HOME/bin/keytool -genkey -alias
yourkeyalias -keyalg RSA -keystore yourkeystore -keypass yourpass -keysize 2048
(generate a private key and store it on your keystore)
okeytool -certreq -keyalg RSA -alias yourkeyalias
-file yourcert.csr -keystore yourkeystore (get a private certificate signed
request based on your key, alias is your key alias in your keystore)
osend the private csr file to CA get a trusted
certificate (get the root csr file, the intermidiate csr file together with the
domain certificate)
oimport the trusted root csr file, then
intermidiate csr file, then your domain csr file into yourkeystore
§ keytool -import -alias root -trustcacerts -file
yourroot.csr -keystore yourkeystore (each cert need a new alias)
oset up tomcat server.xml file. sample connector
setting:
§
· tips
otry a private signed key to make sure your
server is up ready for everything.
okeep no extra space for any certificate. you may
get a lengh too long error if your certificate got extra space.
ochain certificate is root certificate, but you
got to have a root certificate and a intermidiate certificate to make a chain
omake sure CN = your domain name even it asks you
for first name and last name
owhen you import the SSL certificate, the last
one should be the same alias with your key
· how to convert keytool certificate/key to
openssl readable key/crt
oonly need to pay attention the algorithm is rsa,
not dsa
=========================================
About SSL
Knowledge base
https://sites.google.com/site/amitsciscozone/home/security/ssl-connection-setup
https://technet.microsoft.com/en-us/library/cc785811(WS.10).aspx
http://searchsecurity.techtarget.com/answer/The-SSL-handshake-process-Public-and-privates-keys-explained
SSLshopper
https://www.sslshopper.com/certificate-decoder.html
About SSL
Knowledge base
https://sites.google.com/site/amitsciscozone/home/security/ssl-connection-setup
https://technet.microsoft.com/en-us/library/cc785811(WS.10).aspx
http://searchsecurity.techtarget.com/answer/The-SSL-handshake-process-Public-and-privates-keys-explained
SSLshopper
SSL TLS HTTPS process explained in 7 minutes
https://www.youtube.com/watch?v=4nGrOpo0Cuc
SSH handshake process explained
Key and Algorithms
1. SSH uses common asymmetric (or Public) key algorithms: RSA (Rivest-
Shamir-Adleman), DSA (Digital Signature Algorithm), and Diffie-Hellman
2. SSH also uses common symmetric key algorithms: DES (Data Encryption
Standard), IDEA (International Data Encryption Algorithm), Triple-DES
(3DES), Blowfish, and AES (Advanced Encryption Standard). AES comes in
128, 192, and 256 bits.
3. SSH also uses common hash algorithms: MD5 (Message Digest), CRC
(Cyclic Redundancy Check)-32, SHA-1 (Secure Hash Algorithm).
Shamir-Adleman), DSA (Digital Signature Algorithm), and Diffie-Hellman
2. SSH also uses common symmetric key algorithms: DES (Data Encryption
Standard), IDEA (International Data Encryption Algorithm), Triple-DES
(3DES), Blowfish, and AES (Advanced Encryption Standard). AES comes in
128, 192, and 256 bits.
3. SSH also uses common hash algorithms: MD5 (Message Digest), CRC
(Cyclic Redundancy Check)-32, SHA-1 (Secure Hash Algorithm).
Key Exchange
- The client has a public & private key pair. The server has a public & private key pair.
- The client and server exchange their public keys.
- The client now has its own key pair plus the public key of the server.
- The server now has its own key pair plus the public key of the client.
- This exchange of keys is done over an insecure network.
- The client takes its private key and the server’s public key and passes it
through a mathematical equation to produce the shared secret (session key). - The server takes its private key and the client’s public key and passes it
through a mathematical equation to produce the shared secret (session key).
Both these shared secrets are identical! This is an asymmetrical key. - This encrypted tunnel is used for the remainder of the session, including the next phase: User Authentication.
Thursday, April 22, 2010
Untold stories of early environmentalists come alive in oral histories
http://www.today.ucla.edu/portal/ut/untold-stories-of-early-environmentalists-157186.aspx
Producer of "Environmental Activism in LA" Jane Collings.
A sign warns beachgoers at Cabrillo Beach of pollution in 1973. Many of the early leaders of Los Angeles' environmental movement were housewives and mothers, educated women motivated to take action, according to Jane Collings, producer of a series of oral histories that trace the growth of L.A.'s environmental movement. Photos from the Los Angeles Times Photographic Archive.Riverside activist Penny Newman was asked to leave her church because a campaign she was waging against a toxic waste dump in town made other church members uncomfortable. Those members included the family that owned the dump.
Early on, TreePeople founder Andy Lipkis wondered why he was having trouble retaining volunteers for reforestation efforts. The U.S. Forest Service, it turned out, was treating the do-gooders like the labor force they were used to working with – prison inmates.
While being sworn in as an early member of California’s Air Resources Board in 1972, Gladys Meade thumbed her nose at the dress code instituted by then-Gov. Ronald Reagan and wore a pantsuit.
While it’s popular to be green these days, the pioneers of the Southern California environmental movement can still recall the early trials and tribulations of being ahead of a wave of environmental consciousness that would eventually sweep the nation. And they are talking about it in a new series of oral histories.
“Environmental Activism in Los Angeles” features 25 in-depth oral histories with local environmentalists, half of which will be unveiled on Thursday, April 22, on Earth Day. Their accounts will be posted online both as written transcripts and digital recordings at the UCLA Library Center for Oral History Research.
With an exclusive focus on Southern California’s homegrown environmental groups and leaders, the series is believed to be the first collection of oral histories of a regional environmental movement.
Jane Collings, producer of "Environmental Activisim in Los Angeles."“Southern California has the largest, most comprehensive environmental movement in the U.S., and it’s tackled some of the country’s thorniest environmental problems using some of the most sophisticated approaches in environmental activism,” said Jane Collings, the producer of the series and the principal editor at the center. “The Los Angeles environmental movement is really distinctive, and its story needed to be told.”
The inside scoop
Consisting of more 130 hours of interviews and 5,000 pages of transcripts, the series provides an insider’s perspective on such environmental trends as air and water quality management, wetland restoration, environmental justice and sustainable living experiments.
Collings’ interviews typically ran no longer than 90 minutes a session, but she had to return repeatedly to nail down complete life stories. She went back to one subject nine times. “Putting together a series like this requires enormous patience and perseverance,” said Teresa Barnett, head of the Center for Oral History Research. “We’re getting life experiences, not sound bites.”
A smoggy day in Elysian Park in 1980.You’ll learn, for example, the incredible story behind the discovery of smog: It happened at CalTech while researchers were exploring ways to make canned pineapple smell fresher.
You’ll find the poignant details on the grave medical problems that radicalized residents of local port communities and Glen Avon, the small Riverside town that is home to the now defunct Stringfellow acid disposal pits. And you’ll learn about the role of Hollywood producers, writers and other movers and shakers.
Additional groups represented in the series include Communities for a Better Environment, which targets environmental issues in poor and working-class communities; Friends of the Los Angeles River, which is devoted to restoring the waterway; the (Trade, Health, Environment) Impact Project, which fights health and environmental impacts associated with Los Angeles and Long Beach ports; L.A. Eco-Village, a community of 500 residents dedicated to living according to sustainable principles; Long Beach Port Teamsters’ efforts on behalf of the Clean Trucks Program, a push to replace aging big rigs with less polluting models; and the Wetlands Action Network, a group dedicated to preserving and restoring the Ballona Wetlands.
Also telling their stories are Eco-Village founder Lois Arkin, Ballona wetlands activist Marcia Hanscom and Julia Russell, who for two decades has opened her Los Feliz home for tours of sustainable living on a residential scale.
The series is part of a larger effort by the Center for Oral History Research to tell the story of local social movements, including community-building in the wake of the Watts civil unrest and community-organizing among Korean American immigrants and Mexican Americans.
Local activists on the frontline
Cranes load freight containers onto a cargo ship at the Port of Los Angeles in 1986. Air pollution at the port would eventually become a concern.“Environmental Activism” targeted only players active in locally formed and controlled organizations – not groups with a larger reach such as the Sierra Club and the National Resource Defense Council. “The story of nationwide environmental groups deserves to be told, but it’s a different story from the one we wanted to tell,” Collings said. “The UCLA Library’s Center for Oral History Resources is dedicated to telling the story of our region.”
The series’ timing was determined by the advancing age of the movement’s old guard, whose members first got involved in the early 1960s. Ellen Stern Harris, sometimes called the mother of L.A.’s environmental movement, died two years before the project started. And Heal the Bay founder Dorothy Green, the series’ first interview subject, died not long after telling her story. Meade, who was instrumental in the establishment of the Air Quality Management District, had retired from public service by the time she was interviewed.
“We wanted to get this first, seminal generation before it was too late,” said
Collings.
A movement of housewives
Collings was a natural for the series because of her track record in documenting the women’s movement, including the founding of UCLA’s Women’s Studies Program and an ongoing series on women filmmakers.
“A lot of the early leaders of Los Angeles’ environmental movement were housewives,” said Collings. “They were educated women who knew how to get things done, but they didn’t have jobs. So they had the time and skills to throw themselves into issues nobody else was thinking about.”
The series illustrates subtle but profound changes in the types of activists and their causes. While educated women from comfortable economic backgrounds initially led the charge, a less privileged group of women emerged early on, Collings found. Newman and other Riverside County mothers from working-class backgrounds mobilized after they noticed a troubling spate of illnesses among their children that they ascribed to the Stringfellow acid disposal pits, now a Superfund site.
A change in leadership
Toward the late 1960s, the movement surged with an influx of men with backgrounds in the anti-war and counterculture movements, including Lipkis and Lewis MacAdams, a poet and an early advocate for revitalizing the Los Angeles River, Collings said. Whereas the earlier group had been motivated largely by health concerns, this new group brought an artistic perspective to the cause, Collings found. With the emergence of concerns around wetlands as typified by the 1980s quest to preserve the Ballona wetlands, the environmental movement started to take on a spiritual cast, she explained.
Patches of oil washed ashore at Santa Monica in 1969, apparently from a leaking Santa Barbara well. Union Oil Co., while not admitting responsibility, sent a crew to begin cleanup.“These activists were concerned about the health of that environment, but they also mentioned how spiritually renewing it is for people to be able to come to these spaces,” Collings said
.
In the 1980s and 1990s, a new group of activists joined the fray, she found. Working-class people of color and immigrants, they started to mobilize around health and environmental impacts from the Ports of Los Angeles and Long Beach and the huge trucking and rail operations that service the ports. The movement had, by far, its largest geographic spread, stretching from the ports to Riverside cargo storage facilities.
Along the way, what had once been a grassroots thrust has become increasingly professionalized, Collings found. On several occasions, environmental pioneers voice concerns of being pushed aside by environmental specialists with finely honed technical, legal and marketing skills. But as much as the movement has evolved, it never strays far from the leadership of mothers, Collings said.
“The canaries in the coal mine tend to be children,” said Collings, herself a mother of two. ”They’re the ones who tend to show signs of contamination, which then motivates their mother to activism.”
A powerful influence
The series, which took some four years to complete, had a powerful influence on Collings. Already a frequent user of mass transit, Collings found herself increasingly aware of the environmental toll of consumerism. She cut back on purchases and started, where possible, to fill needs with gently used items.
“I don’t think I’ll ever be the same,” she said.
Yet for all the insight that the series gave her, it left her more mystified than ever on at least one score.
“I just can’t explain why some people become activists,” she conceded. ”Many people in these communities went through the same experiences, and they weren’t stepping up and performing these almost heroic actions. Some people just have the capacity to be extraordinary. I guess that sounds like a Hollywood movie, but it’s true.”
See the "Environmental Activism in Los Angeles" collection by clicking here.
Producer of "Environmental Activism in LA" Jane Collings.
A sign warns beachgoers at Cabrillo Beach of pollution in 1973. Many of the early leaders of Los Angeles' environmental movement were housewives and mothers, educated women motivated to take action, according to Jane Collings, producer of a series of oral histories that trace the growth of L.A.'s environmental movement. Photos from the Los Angeles Times Photographic Archive.Riverside activist Penny Newman was asked to leave her church because a campaign she was waging against a toxic waste dump in town made other church members uncomfortable. Those members included the family that owned the dump.
Early on, TreePeople founder Andy Lipkis wondered why he was having trouble retaining volunteers for reforestation efforts. The U.S. Forest Service, it turned out, was treating the do-gooders like the labor force they were used to working with – prison inmates.
While being sworn in as an early member of California’s Air Resources Board in 1972, Gladys Meade thumbed her nose at the dress code instituted by then-Gov. Ronald Reagan and wore a pantsuit.
While it’s popular to be green these days, the pioneers of the Southern California environmental movement can still recall the early trials and tribulations of being ahead of a wave of environmental consciousness that would eventually sweep the nation. And they are talking about it in a new series of oral histories.
“Environmental Activism in Los Angeles” features 25 in-depth oral histories with local environmentalists, half of which will be unveiled on Thursday, April 22, on Earth Day. Their accounts will be posted online both as written transcripts and digital recordings at the UCLA Library Center for Oral History Research.
With an exclusive focus on Southern California’s homegrown environmental groups and leaders, the series is believed to be the first collection of oral histories of a regional environmental movement.
Jane Collings, producer of "Environmental Activisim in Los Angeles."“Southern California has the largest, most comprehensive environmental movement in the U.S., and it’s tackled some of the country’s thorniest environmental problems using some of the most sophisticated approaches in environmental activism,” said Jane Collings, the producer of the series and the principal editor at the center. “The Los Angeles environmental movement is really distinctive, and its story needed to be told.”
The inside scoop
Consisting of more 130 hours of interviews and 5,000 pages of transcripts, the series provides an insider’s perspective on such environmental trends as air and water quality management, wetland restoration, environmental justice and sustainable living experiments.
Collings’ interviews typically ran no longer than 90 minutes a session, but she had to return repeatedly to nail down complete life stories. She went back to one subject nine times. “Putting together a series like this requires enormous patience and perseverance,” said Teresa Barnett, head of the Center for Oral History Research. “We’re getting life experiences, not sound bites.”
A smoggy day in Elysian Park in 1980.You’ll learn, for example, the incredible story behind the discovery of smog: It happened at CalTech while researchers were exploring ways to make canned pineapple smell fresher.
You’ll find the poignant details on the grave medical problems that radicalized residents of local port communities and Glen Avon, the small Riverside town that is home to the now defunct Stringfellow acid disposal pits. And you’ll learn about the role of Hollywood producers, writers and other movers and shakers.
Additional groups represented in the series include Communities for a Better Environment, which targets environmental issues in poor and working-class communities; Friends of the Los Angeles River, which is devoted to restoring the waterway; the (Trade, Health, Environment) Impact Project, which fights health and environmental impacts associated with Los Angeles and Long Beach ports; L.A. Eco-Village, a community of 500 residents dedicated to living according to sustainable principles; Long Beach Port Teamsters’ efforts on behalf of the Clean Trucks Program, a push to replace aging big rigs with less polluting models; and the Wetlands Action Network, a group dedicated to preserving and restoring the Ballona Wetlands.
Also telling their stories are Eco-Village founder Lois Arkin, Ballona wetlands activist Marcia Hanscom and Julia Russell, who for two decades has opened her Los Feliz home for tours of sustainable living on a residential scale.
The series is part of a larger effort by the Center for Oral History Research to tell the story of local social movements, including community-building in the wake of the Watts civil unrest and community-organizing among Korean American immigrants and Mexican Americans.
Local activists on the frontline
Cranes load freight containers onto a cargo ship at the Port of Los Angeles in 1986. Air pollution at the port would eventually become a concern.“Environmental Activism” targeted only players active in locally formed and controlled organizations – not groups with a larger reach such as the Sierra Club and the National Resource Defense Council. “The story of nationwide environmental groups deserves to be told, but it’s a different story from the one we wanted to tell,” Collings said. “The UCLA Library’s Center for Oral History Resources is dedicated to telling the story of our region.”
The series’ timing was determined by the advancing age of the movement’s old guard, whose members first got involved in the early 1960s. Ellen Stern Harris, sometimes called the mother of L.A.’s environmental movement, died two years before the project started. And Heal the Bay founder Dorothy Green, the series’ first interview subject, died not long after telling her story. Meade, who was instrumental in the establishment of the Air Quality Management District, had retired from public service by the time she was interviewed.
“We wanted to get this first, seminal generation before it was too late,” said
Collings.
A movement of housewives
Collings was a natural for the series because of her track record in documenting the women’s movement, including the founding of UCLA’s Women’s Studies Program and an ongoing series on women filmmakers.
“A lot of the early leaders of Los Angeles’ environmental movement were housewives,” said Collings. “They were educated women who knew how to get things done, but they didn’t have jobs. So they had the time and skills to throw themselves into issues nobody else was thinking about.”
The series illustrates subtle but profound changes in the types of activists and their causes. While educated women from comfortable economic backgrounds initially led the charge, a less privileged group of women emerged early on, Collings found. Newman and other Riverside County mothers from working-class backgrounds mobilized after they noticed a troubling spate of illnesses among their children that they ascribed to the Stringfellow acid disposal pits, now a Superfund site.
A change in leadership
Toward the late 1960s, the movement surged with an influx of men with backgrounds in the anti-war and counterculture movements, including Lipkis and Lewis MacAdams, a poet and an early advocate for revitalizing the Los Angeles River, Collings said. Whereas the earlier group had been motivated largely by health concerns, this new group brought an artistic perspective to the cause, Collings found. With the emergence of concerns around wetlands as typified by the 1980s quest to preserve the Ballona wetlands, the environmental movement started to take on a spiritual cast, she explained.
Patches of oil washed ashore at Santa Monica in 1969, apparently from a leaking Santa Barbara well. Union Oil Co., while not admitting responsibility, sent a crew to begin cleanup.“These activists were concerned about the health of that environment, but they also mentioned how spiritually renewing it is for people to be able to come to these spaces,” Collings said
.
In the 1980s and 1990s, a new group of activists joined the fray, she found. Working-class people of color and immigrants, they started to mobilize around health and environmental impacts from the Ports of Los Angeles and Long Beach and the huge trucking and rail operations that service the ports. The movement had, by far, its largest geographic spread, stretching from the ports to Riverside cargo storage facilities.
Along the way, what had once been a grassroots thrust has become increasingly professionalized, Collings found. On several occasions, environmental pioneers voice concerns of being pushed aside by environmental specialists with finely honed technical, legal and marketing skills. But as much as the movement has evolved, it never strays far from the leadership of mothers, Collings said.
“The canaries in the coal mine tend to be children,” said Collings, herself a mother of two. ”They’re the ones who tend to show signs of contamination, which then motivates their mother to activism.”
A powerful influence
The series, which took some four years to complete, had a powerful influence on Collings. Already a frequent user of mass transit, Collings found herself increasingly aware of the environmental toll of consumerism. She cut back on purchases and started, where possible, to fill needs with gently used items.
“I don’t think I’ll ever be the same,” she said.
Yet for all the insight that the series gave her, it left her more mystified than ever on at least one score.
“I just can’t explain why some people become activists,” she conceded. ”Many people in these communities went through the same experiences, and they weren’t stepping up and performing these almost heroic actions. Some people just have the capacity to be extraordinary. I guess that sounds like a Hollywood movie, but it’s true.”
See the "Environmental Activism in Los Angeles" collection by clicking here.
Tuesday, September 29, 2009
Gdata library
Our university is using gmail for our students. Google provides database, service, maintainance and it is free.
My part of synchronize user's gmail password with their current password that they used to log in into our own system. We are using Spring framework for our application.
The hard part is make the decision on how to handle the token that google required to process all actions. We finally decided to have an application level servlet running with our application, this servlet will generate one UserService object and pass it to the ServletContext. The other java beans will implement ServletContextAware interface which is a Spring interface which call setServletContext method automatically, to pass the ServletContext as a bean variable. This approach is a good solution to our problem. We have more than 50,000 gmail account and about 14,372 users changed their password through our application to set the password for their gmail. No CAPTCHA errors was triggered.
Here is some sample code:
1. Web.xml
gmailUserService
servlet.gmail.GmailUserService
2. Application level servlet
try{
userService.setUserCredentials(adminEmail, adminPass); config.getServletContext().setAttribute("gmailUserService", serService);
} catch (CaptchaRequiredException e) {
//send a email to admin so administrator can unlock the CAPTCHER error SendEmailToAdmin sendMail = new SendEmailToAdmin(); sendMail.sendMail();
}
3. Java Beans to validate user and set the password
public class GmailClientPassword implements ServletContextAware {
private ServletContext servletContext;
//automatically be called by SpringFrameword to set the servletContext
public void setServletContext(ServletContext servletContext){ this.servletContext = servletContext;
log.info( "CSUNGmailClientPassword setServletContext() invoked" );
}
//validate user and set password
public void validateAndPassword(){
UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
URL retrieveUrl = new URL(https://apps-apis.google.com/a/feeds/user/2.0/" + username);
userEntry = userService.getEntry(retrieveUrl , UserEntry.class);
String userName = userEntry.getLogin().getUserName();
userEntry.getLogin().setPassword("passwprd"); userService.update(updateUrl, userEntry);
}
}
Reference:
1. From Gmail Support team:
We actually have 2 common scenarios.
Scenario 1 - Service object is reused
In the case, the token renewal will be taken care by the code in the Java client lib. Reusing the UserService object should not generate any CAPCHA. We do have a quota limit on hitting our API server but I don't think your use case will cause any issue. For token renewal, it is actually already handled for you in the Java client library.
Scenario 2 - Service object is not reused For some customers, due to their code design or how their rest of their system works, the Service object somehow cannot be reused. In this case, the developer has to manage the token to avoid CAPTCHA as calling the setUserCredentials method in a new Service object will trigger a ClientLogin call and doing that often will generate CAPTCHAs. So rather than trying to login everytime when a new Service object is created, the developer should call the setUserToken method and apply a token they persist/manage every 24 hours.
CAPTCHA happens when you try to repeatedly doing ClientLogin or repeating create new UserService objects.
2. Resources
http://code.google.com/apis/gdata/faq.html#clientlogin
http://code.google.com/apis/gdata/clientlogin.html
http://code.google.com/apis/gdata/javadoc/
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
http://code.google.com/apis/apps/libraries_and_samples.html#provisioningv2
http://groups.google.com/group/google-apps-apis/msg/97e3e3754ee03561?pli=1
My part of synchronize user's gmail password with their current password that they used to log in into our own system. We are using Spring framework for our application.
The hard part is make the decision on how to handle the token that google required to process all actions. We finally decided to have an application level servlet running with our application, this servlet will generate one UserService object and pass it to the ServletContext. The other java beans will implement ServletContextAware interface which is a Spring interface which call setServletContext method automatically, to pass the ServletContext as a bean variable. This approach is a good solution to our problem. We have more than 50,000 gmail account and about 14,372 users changed their password through our application to set the password for their gmail. No CAPTCHA errors was triggered.
Here is some sample code:
1. Web.xml
2. Application level servlet
try{
userService.setUserCredentials(adminEmail, adminPass); config.getServletContext().setAttribute("gmailUserService", serService);
} catch (CaptchaRequiredException e) {
//send a email to admin so administrator can unlock the CAPTCHER error SendEmailToAdmin sendMail = new SendEmailToAdmin(); sendMail.sendMail();
}
3. Java Beans to validate user and set the password
public class GmailClientPassword implements ServletContextAware {
private ServletContext servletContext;
//automatically be called by SpringFrameword to set the servletContext
public void setServletContext(ServletContext servletContext){ this.servletContext = servletContext;
log.info( "CSUNGmailClientPassword setServletContext() invoked" );
}
//validate user and set password
public void validateAndPassword(){
UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
URL retrieveUrl = new URL(https://apps-apis.google.com/a/feeds/user/2.0/" + username);
userEntry = userService.getEntry(retrieveUrl , UserEntry.class);
String userName = userEntry.getLogin().getUserName();
userEntry.getLogin().setPassword("passwprd"); userService.update(updateUrl, userEntry);
}
}
Reference:
1. From Gmail Support team:
We actually have 2 common scenarios.
Scenario 1 - Service object is reused
In the case, the token renewal will be taken care by the code in the Java client lib. Reusing the UserService object should not generate any CAPCHA. We do have a quota limit on hitting our API server but I don't think your use case will cause any issue. For token renewal, it is actually already handled for you in the Java client library.
Scenario 2 - Service object is not reused For some customers, due to their code design or how their rest of their system works, the Service object somehow cannot be reused. In this case, the developer has to manage the token to avoid CAPTCHA as calling the setUserCredentials method in a new Service object will trigger a ClientLogin call and doing that often will generate CAPTCHAs. So rather than trying to login everytime when a new Service object is created, the developer should call the setUserToken method and apply a token they persist/manage every 24 hours.
CAPTCHA happens when you try to repeatedly doing ClientLogin or repeating create new UserService objects.
2. Resources
http://code.google.com/apis/gdata/faq.html#clientlogin
http://code.google.com/apis/gdata/clientlogin.html
http://code.google.com/apis/gdata/javadoc/
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
http://code.google.com/apis/apps/libraries_and_samples.html#provisioningv2
http://groups.google.com/group/google-apps-apis/msg/97e3e3754ee03561?pli=1
Tuesday, August 25, 2009
JAVA Resources
Free JavaFX Course:
The 2nd session of the course will start from Aug. 25th, 2009.For registration, all you have to do is to send a blankemail to the following email alias
javafxprogramming-subscribe@googlegroups.com
This course runs very much like a regular college coursein which the students are expected to do weekly homeworkafter studying the presentation material and doing the hands-onlab but it is free and can be taken online. There is alsoclass email alias where students can ask/answer questions.For more information, please go to the course websites below.
Course topics: http://www.javapassion.com/javafx/#Topics
Course website: http://www.javapassion.com/javafx
Course FAQ: http://www.javapassion.com/coursefaq.html
The 2nd session of the course will start from Aug. 25th, 2009.For registration, all you have to do is to send a blankemail to the following email alias
javafxprogramming-subscribe@googlegroups.com
This course runs very much like a regular college coursein which the students are expected to do weekly homeworkafter studying the presentation material and doing the hands-onlab but it is free and can be taken online. There is alsoclass email alias where students can ask/answer questions.For more information, please go to the course websites below.
Course topics: http://www.javapassion.com/javafx/#Topics
Course website: http://www.javapassion.com/javafx
Course FAQ: http://www.javapassion.com/coursefaq.html
Wednesday, March 18, 2009
Sun Identity Management
As a newbie to SUN IDM, here are some of my tips:
Tip: The following post has a simple example on form/workflow/Java file: http://www.topicobserver.com/blog/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/ . Be careful, there are different ways to call a java method depends on if it is static or not. Of course, the rule of Java is try to make all method as static as possible.
Tip: The Java API document from SunIDM is almost useless. Another way to approach those blackboxes is decompile all the idm*.jar files. I found that the JD-GUI Java Decompiler is easy to use. http://java.decompiler.free.fr/?q=jdgui
Tip: Dump of the context in workflow is very useful since the debug interface is hard to go over every attribute.http://forums.sun.com/thread.jspa?forumID=764&threadID=5057271
Resources:
1. general info to start: http://www.sun.com/software/products/identity_mgr/faqs.xml
2. Forums: http://forums.sun.com/forum.jspa?forumID=764&start=0
3. Xpress language: http://docs.sun.com/source/819-4485/XPRESS.html
Tip: The following post has a simple example on form/workflow/Java file: http://www.topicobserver.com/blog/sun-idm/2008/custom-forms-and-view-handlers-in-sun-identity-management-80/ . Be careful, there are different ways to call a java method depends on if it is static or not. Of course, the rule of Java is try to make all method as static as possible.
Tip: The Java API document from SunIDM is almost useless. Another way to approach those blackboxes is decompile all the idm*.jar files. I found that the JD-GUI Java Decompiler is easy to use. http://java.decompiler.free.fr/?q=jdgui
Tip: Dump of the context in workflow is very useful since the debug interface is hard to go over every attribute.
Resources:
1. general info to start: http://www.sun.com/software/products/identity_mgr/faqs.xml
2. Forums: http://forums.sun.com/forum.jspa?forumID=764&start=0
3. Xpress language: http://docs.sun.com/source/819-4485/XPRESS.html
Thursday, November 6, 2008
Digital Preservation Resources
Digital Preservation Policies Study:
http://www.jisc.ac.uk/publications/publications/jiscpolicyfinalreport.aspx
A major business driver in all universities and colleges over the past decade has been harnessing digital content and electronic services and the undoubted benefits in terms of flexibility and increased productivity they can bring. The priority in recent years has been on developing e-strategies and infrastructure to underpin electronic access and services and to deliver those benefits. However any long-term access and future benefit may be heavily dependent on digital preservation strategies being in place and underpinned by relevant policy and procedures. This should now be an increasing area of focus in our institutions.
This JISC funded study completed by Charles Beagrie Ltd aims to provide an outline model for digital preservation policies and to analyse the role that digital preservation can play in supporting and delivering key strategies for Higher and Further Education Institutions. Although focussing on the UK Higher and Further Education sectors, the study draws widely on policy and implementations from other sectors and countries and will be of interest to those wishing to develop policy and justify investment in digital preservation within a wide range of institutions.
Two tools have been created in this study:
1) a model/framework for digital preservation policy and implementation clauses based on examination of existing digital preservation policies;
2) a series of mappings of digital preservation to other key institutional strategies in UK universities and colleges including Research, Teaching and Learning, Information, Libraries, and Records Management.
Our aim has been to help institutions and their staff develop appropriate digital preservation policies and clauses set in the context of broader institutional strategies.
Grant
Grant Writing
http://www.jisc.ac.uk/publications/publications/jiscpolicyfinalreport.aspx
A major business driver in all universities and colleges over the past decade has been harnessing digital content and electronic services and the undoubted benefits in terms of flexibility and increased productivity they can bring. The priority in recent years has been on developing e-strategies and infrastructure to underpin electronic access and services and to deliver those benefits. However any long-term access and future benefit may be heavily dependent on digital preservation strategies being in place and underpinned by relevant policy and procedures. This should now be an increasing area of focus in our institutions.
This JISC funded study completed by Charles Beagrie Ltd aims to provide an outline model for digital preservation policies and to analyse the role that digital preservation can play in supporting and delivering key strategies for Higher and Further Education Institutions. Although focussing on the UK Higher and Further Education sectors, the study draws widely on policy and implementations from other sectors and countries and will be of interest to those wishing to develop policy and justify investment in digital preservation within a wide range of institutions.
Two tools have been created in this study:
1) a model/framework for digital preservation policy and implementation clauses based on examination of existing digital preservation policies;
2) a series of mappings of digital preservation to other key institutional strategies in UK universities and colleges including Research, Teaching and Learning, Information, Libraries, and Records Management.
Our aim has been to help institutions and their staff develop appropriate digital preservation policies and clauses set in the context of broader institutional strategies.
Grant
Grant Writing
- OCLC Resource: Grants writing, standards, online copyright, mailing list, electronic publications
http://www.oclc.org/digitalpreservation/resources/default.htm
Grant Resources:
- NEH: National Endowment for the Humanities, Presernation and Access Awards, Devision of Preservation and Access.
http://www.neh.gov/grants/guidelines/HCRR.html
http://www.neh.gov/news/awards/preservationFeb2008.html
Subscribe to:
Posts (Atom)